.module
  %h4= @config["title"]
  %ul
    %li
      = form_remote_tag :update => "target_nabaztag",:url => {:controller => "/plugin/nabaztag", :action => :send_message},:loading => "Element.show('busy_nabaztag')",:complete => "Element.hide('busy_nabaztag')" 
      = _("message")+"<br/>"+text_field_tag(:message,"", :size=>15)+"<br/>"
      = _("left")+text_field_tag("left","", :size=>5)+"<br/>"
      = _("right")+text_field_tag(:right,"", :size=>5)+"<br/>"
      = _("voice")+select_tag('voice',options_for_select(%w{ julie22k claire22s caroline22k bruno22k graham22s lucy22s heather22k ryan22k aaron22s laura22s }))+"<br/>"
      = _("speed")+text_field_tag(:right,"", :size=>5,:value=>100)+"<br/>"
      = _("pitch")+text_field_tag(:right,"", :size=>5)+"<br/>"
      %label{:for=>"validation_code"}
        #target_nabaztag
          =_ "Enter result of "
          = ":"
          = session["oper1"].to_s+session["sign"]+session["oper2"].to_s 
        = text_field 'validation','',:value=>"",:size=>5
        = "<br>" 
      = submit_tag "Send"
      = "</form>"
      = image_tag "indicator_arrows.gif",:id=>"busy_nabaztag",:style=>"display:none;"
      
